//
//  BuiltInShape.swift
//  SwiftUIShape
//
//  Created by 李煜 on 2024/7/31.
//

import SwiftUI

struct BuiltInShape: View {
	var body: some View {
    //内置图形的组合
		Circle()
			.foregroundColor(.green)
			.frame(width: 200, height: 200)
			.overlay {
				RoundedRectangle(cornerRadius: 5)
					.frame(width: 80, height: 80)
					.foregroundColor(.white)
			}
	}
}

#Preview {
	BuiltInShape()
}
